package icu.qx.qc.domain.pro;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import icu.qx.qc.domain.gbs.GbsGood;

import java.math.BigDecimal;

/**
 * 生产工单对象 pro_work_order
 *
 * @author yong
 * @date 2024-06-24
 */
@JsonIgnoreProperties(value = {"handler"})
public class ProWorkOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 生产工单code
     */
    private String workOrderCode;

    /**
     * schedule_code
     */
    @Excel(name = "schedule_code")
    private String scheduleCode;

    /**
     * 工单名称
     */
    @Excel(name = "工单名称")
    private String workOrderName;

    /**
     * 工单备注
     */
    @Excel(name = "工单备注")
    private String workOrderDesc;

    /**
     * 工单状态 0待排产 1未开始 2进行中 3已完成 4已暂停 5已关闭
     */
    @Excel(name = "工单状态 0待排产 1未开始 2进行中 3已完成 4已暂停 5已关闭")
    private String workOrderStatus;

    /**
     * 关闭原因
     */
    @Excel(name = "关闭原因")
    private String workOrderCloseR;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    private String workOrderProduct;
    private GbsGood gbsGood;

    /**
     * 工艺路线id
     */
    @Excel(name = "工艺路线id")
    private String workOrderRoute;

    /**
     * 工单批次
     */
    @Excel(name = "工单批次")
    private String workOrderBatch;

    /**
     * 计划数量
     */
    @Excel(name = "计划数量")
    private BigDecimal workOrderNum;

    public GbsGood getGbsGood() {
        return gbsGood;
    }

    public void setGbsGood(GbsGood gbsGood) {
        this.gbsGood = gbsGood;
    }

    public void setWorkOrderCode(String workOrderCode) {
        this.workOrderCode = workOrderCode;
    }

    public String getWorkOrderCode() {
        return workOrderCode;
    }

    public void setScheduleCode(String scheduleCode) {
        this.scheduleCode = scheduleCode;
    }

    public String getScheduleCode() {
        return scheduleCode;
    }

    public void setWorkOrderName(String workOrderName) {
        this.workOrderName = workOrderName;
    }

    public String getWorkOrderName() {
        return workOrderName;
    }

    public void setWorkOrderDesc(String workOrderDesc) {
        this.workOrderDesc = workOrderDesc;
    }

    public String getWorkOrderDesc() {
        return workOrderDesc;
    }

    public void setWorkOrderStatus(String workOrderStatus) {
        this.workOrderStatus = workOrderStatus;
    }

    public String getWorkOrderStatus() {
        return workOrderStatus;
    }

    public void setWorkOrderCloseR(String workOrderCloseR) {
        this.workOrderCloseR = workOrderCloseR;
    }

    public String getWorkOrderCloseR() {
        return workOrderCloseR;
    }

    public void setWorkOrderProduct(String workOrderProduct) {
        this.workOrderProduct = workOrderProduct;
    }

    public String getWorkOrderProduct() {
        return workOrderProduct;
    }

    public void setWorkOrderRoute(String workOrderRoute) {
        this.workOrderRoute = workOrderRoute;
    }

    public String getWorkOrderRoute() {
        return workOrderRoute;
    }

    public void setWorkOrderBatch(String workOrderBatch) {
        this.workOrderBatch = workOrderBatch;
    }

    public String getWorkOrderBatch() {
        return workOrderBatch;
    }

    public void setWorkOrderNum(BigDecimal workOrderNum) {
        this.workOrderNum = workOrderNum;
    }

    public BigDecimal getWorkOrderNum() {
        return workOrderNum;
    }


    @Override
    public String toString() {
        return "ProWorkOrder{" +
                "workOrderCode='" + workOrderCode + '\'' +
                ", scheduleCode='" + scheduleCode + '\'' +
                ", workOrderName='" + workOrderName + '\'' +
                ", workOrderDesc='" + workOrderDesc + '\'' +
                ", workOrderStatus='" + workOrderStatus + '\'' +
                ", workOrderCloseR='" + workOrderCloseR + '\'' +
                ", workOrderProduct='" + workOrderProduct + '\'' +
                ", gbsGood=" + gbsGood +
                ", workOrderRoute='" + workOrderRoute + '\'' +
                ", workOrderBatch='" + workOrderBatch + '\'' +
                ", workOrderNum=" + workOrderNum +
                "} " + super.toString();
    }
}
